﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using DAL;

namespace BLL
{
    public class BPhonePlatform
    {
        private readonly DPhonePlatform _dPhonePlatform = new DPhonePlatform();

        public bool ExistsNumber(string phonenumber)
        {
            return _dPhonePlatform.ExistsNumber(phonenumber);
        }
         
        public bool Add(Model.PhonePlatformInfo model)
        {
            return _dPhonePlatform.Add(model);
        }
     
        public bool UpdateAfterLogin(string number, string version)
        {
            return _dPhonePlatform.UpdateAfterLogin(number, version);
        }
         
        public bool UpdateArea(string number, string area)
        {
            return _dPhonePlatform.UpdateArea(number, area);
        }
         
        public bool Delete(int id)
        {
            return _dPhonePlatform.Delete(id);
        }
         
        public DataSet GetList(string strWhere)
        {
            return _dPhonePlatform.GetList(strWhere);
        }
         
        public DataSet GetList(string parameter, string parameterVaule)
        {
            return _dPhonePlatform.GetList(parameter, parameterVaule);
        }

    }
}
